package com.example.config;

import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;

/**
 * @author wangjinlong
 * @version 1.0
 * @date 2021/6/29 11:31
 */
//@Component
public class CustomIdGenerator2 implements IdentifierGenerator {
    @Override
    public Long nextId(Object entity) {
        long id = System.nanoTime();
        return id;
    }
}

